package com.example.sls.service.impl.social;

import com.example.sls.pojo.social.FriendList;
import com.example.sls.dao.social.FriendListDao;
import com.example.sls.service.intserfaces.social.FriendListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 好友列表(FriendList)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:54:59
 */
@Service
public class FriendListServiceImpl implements FriendListService {
  @Autowired
  FriendListDao friendListDao;

  @Override
  public FriendList queryById(Integer id) {
    return friendListDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return friendListDao.deleteById(id);
  }

  @Override
  public int update(FriendList friendList) {
    return friendListDao.update(friendList);
  }

  @Override
  public int insert(FriendList friendList) {
    return friendListDao.insert(friendList);
  }

  @Override
  public long count() {
    return friendListDao.count();
  }

  @Override
  public List<FriendList> queryAllByLimit(FriendList friendList, Integer pageSize, Integer offset) {
    return friendListDao.queryAllByLimit(friendList, pageSize, offset);
  }
}
